/**
 * 
 */
package slhs.tempo.scriptGenerator;

import javax.swing.JPanel;

/**
 * ProbeDataPanelHandlerFactory.java
 * 
 * @author Swapnil Devikar
 * 
 */
public class ProbeDataPanelHandlerFactory implements PanelFormatInterface {

    /*
     * (non-Javadoc)
     * 
     * @see slhs.tempo.scriptGenerator.ProbeTimingFormatPanelInterface#getPanel(java.lang.String)
     */
    @Override
    public JPanel getPanel(String experimentType) {
	JPanel probeTimingPanel = null;
	if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[0])) {
	    probeTimingPanel = new UnimodalVisualProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[1])) {
	    probeTimingPanel = new UnimodalVisualProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[2])) {
	    probeTimingPanel = new CrossModalProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[3])) {
	    probeTimingPanel = new CrossModalWithErpProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[4])) {
	    probeTimingPanel = new CrossModalProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[5])) {
	    probeTimingPanel = new UnimodalVisualProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[6])) {
	    probeTimingPanel = new CrossModalHemiProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[7])) {
	    probeTimingPanel = new UnimodalChunkByCunkProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[8])) {
	    probeTimingPanel = new VideoProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[9])) {
	    probeTimingPanel = new VideoWithErpProbeDataPanelHandler().getPanel();
	} else if (experimentType.equals(UtilityConstants.EXPERIMENT_MODES[10])) {
	    probeTimingPanel = new CrossModalProbeDataPanelHandler().getPanel();
	}
	return probeTimingPanel;
    }

}
